home *** CD-ROM | disk | FTP | other *** search
/ Comix Games / Comix Games.iso / jetsons / jetsons.exe / jetsons.dxr / 00006.ls < prev    next >
Encoding:
Text File  |  1996-11-19  |  3.3 KB  |  88 lines

  1. on ReInit
  2.   global theShipYVelocity, theLastSpriteXs, theLastSpriteYs, theFirstShipChannel, theLastKeyTime, theBuildingCount, theFirstDropOffBuilding, theSecondDropOffBuilding, theThirdDropOffBuilding, theFourthDropOffBuilding, theLastDropOffBuilding, theFirstPodChannel, theSecondPodChannel, theThirdPodChannel, theFourthPodChannel, theSecondsLeft, theGameOver, theMaxNumBuildings, theFirstButtonPressed, theGameNumber, theWonLastGame, theFirstHeadChannel, theLastHeadChannel, theStartSeconds, theWantShowScore
  3.   set theWantShowScore to 0
  4.   set theFirstButtonPressed to 0
  5.   set theGameOver to 0
  6.   if theWonLastGame then
  7.     set theGameNumber to theGameNumber + 1
  8.   else
  9.     set theGameNumber to 1
  10.   end if
  11.   set theWonLastGame to 0
  12.   if theGameNumber = 2 then
  13.     set theSecondsLeft to 89
  14.   else
  15.     if theGameNumber = 3 then
  16.       set theSecondsLeft to 79
  17.     else
  18.       if theGameNumber = 4 then
  19.         set theSecondsLeft to 69
  20.       else
  21.         if theGameNumber = 5 then
  22.           set theSecondsLeft to 59
  23.         else
  24.           if theGameNumber = 6 then
  25.             set theSecondsLeft to 49
  26.           else
  27.             if theGameNumber = 7 then
  28.               set theSecondsLeft to 39
  29.             else
  30.               if theGameNumber = 8 then
  31.                 set theSecondsLeft to 29
  32.               else
  33.                 if theGameNumber >= 9 then
  34.                   set theSecondsLeft to 19
  35.                 else
  36.                   set theSecondsLeft to 99
  37.                   set theGameNumber to 1
  38.                 end if
  39.               end if
  40.             end if
  41.           end if
  42.         end if
  43.       end if
  44.     end if
  45.   end if
  46.   set theStartSeconds to theSecondsLeft
  47.   set the visible of sprite theFirstPodChannel to 0
  48.   set the visible of sprite theSecondPodChannel to 0
  49.   set the visible of sprite theThirdPodChannel to 0
  50.   set the visible of sprite theFourthPodChannel to 0
  51.   set the locV of sprite theFirstPodChannel to 100
  52.   set the locV of sprite theSecondPodChannel to 100
  53.   set the locV of sprite theThirdPodChannel to 100
  54.   set the locV of sprite theFourthPodChannel to 100
  55.   set the locH of sprite theFirstPodChannel to -100
  56.   set the locH of sprite theSecondPodChannel to -100
  57.   set the locH of sprite theThirdPodChannel to -100
  58.   set the locH of sprite theFourthPodChannel to -100
  59.   set the regPoint of member "family 1" to point(7, 8)
  60.   set the regPoint of member "family 2" to point(7, 14)
  61.   set the regPoint of member "family 3" to point(8, 9)
  62.   set the regPoint of member "family 4" to point(8, 11)
  63.   set the regPoint of member "Left family 1" to point(7, 8)
  64.   set the regPoint of member "Left family 2" to point(7, 14)
  65.   set the regPoint of member "Left family 3" to point(8, 12)
  66.   set the regPoint of member "Left family 4" to point(8, 11)
  67.   set theFirstDropOffBuilding to 5
  68.   set theSecondDropOffBuilding to 10
  69.   set theThirdDropOffBuilding to 15
  70.   set theFourthDropOffBuilding to 20
  71.   set theLastDropOffBuilding to 25
  72.   set theBuildingCount to 1
  73.   set theMaxNumBuildings to 30
  74.   set theLastKeyTime to the ticks
  75.   set theLastSpriteXs to []
  76.   set theLastSpriteYs to []
  77.   if the machineType > 255 then
  78.     set theShipYVelocity to 7
  79.   else
  80.     set theShipYVelocity to 14
  81.   end if
  82.   set the memberNum of sprite theFirstShipChannel to the number of member "Ship Down 1"
  83.   set the timeoutLength to 60
  84.   set the timeoutKeyDown to 0
  85.   set the timeoutMouse to 0
  86.   when timeOut then DoClock
  87. end
  88.